<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="icon" type="image/svg+xml" href="/logo.svg">
  <title>AIOS.chat</title>
</head>

<body class="font-sans bg-white dark:bg-[#161619]">
  <div id="app"></div>
  <script>
    (function () {
      const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
      const setting = localStorage.getItem('theme') || 'auto';
      if (setting === 'dark' || (prefersDark && setting !== 'light')) {
        document.documentElement.classList.toggle('dark', true);
        document.body.setAttribute('theme-mode', 'dark');
      }
    })();
  </script>
  <script type="module" src="/src/main.tsx"></script>
</body>

</html>